package grape.workflow.rest.model.vo;

import grape.base.service.user.api.IUserService;
import grape.common.rest.vo.BaseVo;
import grape.common.service.trans.TransBy;
import grape.common.service.trans.impl.DatetimeTransServiceImpl;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.flowable.ui.modeler.model.ModelRepresentation;

import java.util.Date;

/**
 * Created by yangwei
 * Created at 2020/6/29 11:04
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ApiModel("模型设置数据响应对象")
public class DeModelVo extends BaseVo {
    private String id;
    private String name;
    private String key;
    private String description;
    private String createdBy;
    private String lastUpdatedBy;
    private Date lastUpdated;
    private boolean latestVersion;
    private int version;
    private String comment;
    private Integer modelType;
    private String tenantId;


    @TransBy(type = DatetimeTransServiceImpl.trans_datetime,byFieldName = "lastUpdated")
    private String lastUpdatedTxt;

    @TransBy(type = IUserService.trans_type_userNickname,byFieldName = "createdBy")
    private String createdByUserNickname;

    @TransBy(type = IUserService.trans_type_userNickname,byFieldName = "lastUpdatedBy")
    private String lastUpdatedByUserNickname;
}
